package recycle.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：商品信息表实体类
* @author 孙冉
* @date 2019/07/22
*/
public class Productinfo implements Serializable {

   /**商品ID*/
    private Integer productId;
   /**商品编码*/
    private String productCore;
   /**商品名称*/
    private String productName;
   /**品牌表的ID*/
    private Integer brandId;
   /**一级分类ID*/
    private Integer oneCategoryId;
   /**二级分类ID*/
    private Integer twoCategoryId;
   /**三级分类ID*/
    private Integer threeCategoryId;
   /**上下架状态：0下架1上架*/
    private Integer publishStatus;
   /**审核状态：0未审核，1已审核*/
    private Integer auditStatus;
   /**初始回收价格*/
    private Double initialRecyclePrice;
   /**生产日期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;
   /**商品描述*/
    private String descript;
   /**商品录入时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date indate;
   /**商品图片路径*/
    private String productPicPath;
   /**最后修改时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifiedTime;
   /**回收次数*/
    private Integer recycleCount;
   /**其他*/
    private String other1;
   /**其他*/
    private String other2;

    /**分类名称*/
    private String categoryName;

    private String categoryStatus;

    public String getCategoryStatus() {
        return categoryStatus;
    }

    public void setCategoryStatus(String categoryStatus) {
        this.categoryStatus = categoryStatus;
    }

    public Productinfo(){}

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Productinfo(Integer productId, String productCore, String productName, Integer brandId, Integer oneCategoryId, Integer twoCategoryId, Integer threeCategoryId, Integer publishStatus, Integer auditStatus, Double initialRecyclePrice, Date productionDate, String descript, Date indate, String productPicPath, Date modifiedTime, Integer recycleCount, String other1, String other2){
        this.productId = productId;
        this.productCore = productCore;
        this.productName = productName;
        this.brandId = brandId;
        this.oneCategoryId = oneCategoryId;
        this.twoCategoryId = twoCategoryId;
        this.threeCategoryId = threeCategoryId;
        this.publishStatus = publishStatus;
        this.auditStatus = auditStatus;
        this.initialRecyclePrice = initialRecyclePrice;
        this.productionDate = productionDate;
        this.descript = descript;
        this.indate = indate;
        this.productPicPath = productPicPath;
        this.modifiedTime = modifiedTime;
        this.recycleCount = recycleCount;
        this.other1 = other1;
        this.other2 = other2;
    }

   /**获取商品ID属性的值*/
    public Integer getProductId() {
        return this.productId;
    }
   /**设置商品ID属性的值*/
    public void setProductId(Integer productId) {
        this.productId = productId;
    }
   /**获取商品编码属性的值*/
    public String getProductCore() {
        return this.productCore;
    }
   /**设置商品编码属性的值*/
    public void setProductCore(String productCore) {
        this.productCore = productCore;
    }
   /**获取商品名称属性的值*/
    public String getProductName() {
        return this.productName;
    }
   /**设置商品名称属性的值*/
    public void setProductName(String productName) {
        this.productName = productName;
    }
   /**获取品牌表的ID属性的值*/
    public Integer getBrandId() {
        return this.brandId;
    }
   /**设置品牌表的ID属性的值*/
    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
   /**获取一级分类ID属性的值*/
    public Integer getOneCategoryId() {
        return this.oneCategoryId;
    }
   /**设置一级分类ID属性的值*/
    public void setOneCategoryId(Integer oneCategoryId) {
        this.oneCategoryId = oneCategoryId;
    }
   /**获取二级分类ID属性的值*/
    public Integer getTwoCategoryId() {
        return this.twoCategoryId;
    }
   /**设置二级分类ID属性的值*/
    public void setTwoCategoryId(Integer twoCategoryId) {
        this.twoCategoryId = twoCategoryId;
    }
   /**获取三级分类ID属性的值*/
    public Integer getThreeCategoryId() {
        return this.threeCategoryId;
    }
   /**设置三级分类ID属性的值*/
    public void setThreeCategoryId(Integer threeCategoryId) {
        this.threeCategoryId = threeCategoryId;
    }
   /**获取上下架状态：0下架1上架属性的值*/
    public Integer getPublishStatus() {
        return this.publishStatus;
    }
   /**设置上下架状态：0下架1上架属性的值*/
    public void setPublishStatus(Integer publishStatus) {
        this.publishStatus = publishStatus;
    }
   /**获取审核状态：0未审核，1已审核属性的值*/
    public Integer getAuditStatus() {
        return this.auditStatus;
    }
   /**设置审核状态：0未审核，1已审核属性的值*/
    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }
   /**获取初始回收价格属性的值*/
    public Double getInitialRecyclePrice() {
        return this.initialRecyclePrice;
    }
   /**设置初始回收价格属性的值*/
    public void setInitialRecyclePrice(Double initialRecyclePrice) {
        this.initialRecyclePrice = initialRecyclePrice;
    }
   /**获取生产日期属性的值*/
    public Date getProductionDate() {
        return this.productionDate;
    }
   /**设置生产日期属性的值*/
    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }
   /**获取商品描述属性的值*/
    public String getDescript() {
        return this.descript;
    }
   /**设置商品描述属性的值*/
    public void setDescript(String descript) {
        this.descript = descript;
    }
   /**获取商品录入时间属性的值*/
    public Date getIndate() {
        return this.indate;
    }
   /**设置商品录入时间属性的值*/
    public void setIndate(Date indate) {
        this.indate = indate;
    }
   /**获取商品图片路径属性的值*/
    public String getProductPicPath() {
        return this.productPicPath;
    }
   /**设置商品图片路径属性的值*/
    public void setProductPicPath(String productPicPath) {
        this.productPicPath = productPicPath;
    }
   /**获取最后修改时间属性的值*/
    public Date getModifiedTime() {
        return this.modifiedTime;
    }
   /**设置最后修改时间属性的值*/
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
   /**获取回收次数属性的值*/
    public Integer getRecycleCount() {
        return this.recycleCount;
    }
   /**设置回收次数属性的值*/
    public void setRecycleCount(Integer recycleCount) {
        this.recycleCount = recycleCount;
    }
   /**获取其他属性的值*/
    public String getOther1() {
        return this.other1;
    }
   /**设置其他属性的值*/
    public void setOther1(String other1) {
        this.other1 = other1;
    }
   /**获取其他属性的值*/
    public String getOther2() {
        return this.other2;
    }
   /**设置其他属性的值*/
    public void setOther2(String other2) {
        this.other2 = other2;
    }
}
